@import "../../assets/style/global";

@mixin menuSideItem($item-name: person) {
  &.#{$item-name} {
    background: url('./images/'+ $item-name +'_icon.png') no-repeat center;
  }
}
@mixin menuSideItemActive($item-name: person) {
  &.#{$item-name} {
    background: url('./images/'+ $item-name +'_active_icon.png') no-repeat center;
  }
}

.menuActive {
  @include menuSideItemActive(person);
  @include menuSideItemActive(psd);
  @include menuSideItemActive(userManger);
  @include menuSideItemActive(order);
}

.user-side {
  width: 260px !important;
  max-width: 260px !important;
  background-color: $sideBgColor;
}

.side-list {
  width: 260px;
  background-color: $sideBgColor;

  &-item {
    height: 56px;
    line-height: 56px;
    text-align: center;
    .item-icon {
      position: relative;
      left: -15px;
      top: 4px;
      display: inline-block;
      width: 24px;
      height: 24px;

      @include menuSideItem(person);
      @include menuSideItem(psd);
      @include menuSideItem(userManger);
      @include menuSideItem(order);
    }
    a{
        color: $gray;
        display: block;
    }

    .active {
      border-left: 4px solid $blue;
      background-color: $bgColor;
      color: $grayLight;

      .allow-icon {
        position: relative;
        top: 1px;
        left: 55px;
        display: inline-block;
        width: 8px;
        height: 13px;
        background: url(./images/allow_right_icon.png) no-repeat center;
      }
      .item-icon {
        @extend .menuActive;
      }
    }
    &:hover {
      color: $grayLight;

      .item-icon {
        @extend .menuActive;
      }
    }
  }
}

.user-content {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  height: calc(100vh - 70px);
  background-color: $bgColor;
}
